.class Lcom/htc/android/footprints/service/LocationAgentService$1;
.super Ljava/lang/Object;
.source "LocationAgentService.java"

# interfaces
.implements Lcom/htc/android/footprints/service/LocationAgent$AgentListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/service/LocationAgentService;->onCreate()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/service/LocationAgentService;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/service/LocationAgentService;)V
    .locals 0
    .parameter

    .prologue
    .line 67
    iput-object p1, p0, Lcom/htc/android/footprints/service/LocationAgentService$1;->this$0:Lcom/htc/android/footprints/service/LocationAgentService;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onAgentPause()V
    .locals 6

    .prologue
    .line 68
    iget-object v3, p0, Lcom/htc/android/footprints/service/LocationAgentService$1;->this$0:Lcom/htc/android/footprints/service/LocationAgentService;

    #getter for: Lcom/htc/android/footprints/service/LocationAgentService;->clientList:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/htc/android/footprints/service/LocationAgentService;->access$000(Lcom/htc/android/footprints/service/LocationAgentService;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    .local v2, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/ILocationAgentCallback;

    .line 69
    .local v0, client:Lcom/htc/android/footprints/ILocationAgentCallback;
    const-string v3, "LocationAgentService"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "client callback = "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 71
    :try_start_0
    invoke-interface {v0}, Lcom/htc/android/footprints/ILocationAgentCallback;->onAgentPause()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 72
    :catch_0
    move-exception v1

    .line 74
    .local v1, e:Landroid/os/RemoteException;
    invoke-virtual {v1}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0

    .line 77
    .end local v0           #client:Lcom/htc/android/footprints/ILocationAgentCallback;
    .end local v1           #e:Landroid/os/RemoteException;
    :cond_0
    return-void
.end method

.method public onUpdateStatus(IIDD)V
    .locals 9
    .parameter "status"
    .parameter "signallevel"
    .parameter "latitude"
    .parameter "longitude"

    .prologue
    .line 41
    iget-object v1, p0, Lcom/htc/android/footprints/service/LocationAgentService$1;->this$0:Lcom/htc/android/footprints/service/LocationAgentService;

    #getter for: Lcom/htc/android/footprints/service/LocationAgentService;->clientList:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/htc/android/footprints/service/LocationAgentService;->access$000(Lcom/htc/android/footprints/service/LocationAgentService;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_2

    .line 44
    const/16 v1, 0xc

    if-eq p1, v1, :cond_0

    const/16 v1, 0xa

    if-eq p1, v1, :cond_0

    const/16 v1, 0xd

    if-ne p1, v1, :cond_1

    .line 46
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/service/LocationAgentService$1;->this$0:Lcom/htc/android/footprints/service/LocationAgentService;

    #getter for: Lcom/htc/android/footprints/service/LocationAgentService;->mBinder:Lcom/htc/android/footprints/ILocationAgentService$Stub;
    invoke-static {v1}, Lcom/htc/android/footprints/service/LocationAgentService;->access$100(Lcom/htc/android/footprints/service/LocationAgentService;)Lcom/htc/android/footprints/ILocationAgentService$Stub;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 48
    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/service/LocationAgentService$1;->this$0:Lcom/htc/android/footprints/service/LocationAgentService;

    #getter for: Lcom/htc/android/footprints/service/LocationAgentService;->mBinder:Lcom/htc/android/footprints/ILocationAgentService$Stub;
    invoke-static {v1}, Lcom/htc/android/footprints/service/LocationAgentService;->access$100(Lcom/htc/android/footprints/service/LocationAgentService;)Lcom/htc/android/footprints/ILocationAgentService$Stub;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/android/footprints/ILocationAgentService$Stub;->stopTrackingWithoutNotify()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 65
    :cond_1
    :goto_0
    return-void

    .line 49
    :catch_0
    move-exception v1

    move-object v7, v1

    .line 50
    .local v7, e:Landroid/os/RemoteException;
    invoke-virtual {v7}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0

    .line 55
    .end local v7           #e:Landroid/os/RemoteException;
    :cond_2
    iget-object v1, p0, Lcom/htc/android/footprints/service/LocationAgentService$1;->this$0:Lcom/htc/android/footprints/service/LocationAgentService;

    #getter for: Lcom/htc/android/footprints/service/LocationAgentService;->clientList:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/htc/android/footprints/service/LocationAgentService;->access$000(Lcom/htc/android/footprints/service/LocationAgentService;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v8

    .local v8, i$:Ljava/util/Iterator;
    :goto_1
    invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/ILocationAgentCallback;

    .line 56
    .local v0, client:Lcom/htc/android/footprints/ILocationAgentCallback;
    const-string v1, "LocationAgentService"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "client callback = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    move v1, p1

    move v2, p2

    move-wide v3, p3

    move-wide v5, p5

    .line 58
    :try_start_1
    invoke-interface/range {v0 .. v6}, Lcom/htc/android/footprints/ILocationAgentCallback;->onUpdateStatus(IIDD)V
    :try_end_1
    .catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    .line 59
    :catch_1
    move-exception v7

    .line 61
    .restart local v7       #e:Landroid/os/RemoteException;
    invoke-virtual {v7}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_1
.end method
